// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__D005DAB2_1320_4C32_81C5_145211118E7D__INCLUDED_)
#define AFX_MAINFRM_H__D005DAB2_1320_4C32_81C5_145211118E7D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Mil.h"
#include "YujinSRHostDoc.h"
#include "YujinSRHostView.h"
#include "Ground.h"	// Added by ClassView
long MFTYPE GrabEven(long, MIL_ID, void *);
long MFTYPE GrabODD(long, MIL_ID, void *);
#define M_PI 3.1419
#define WM_KEYDOWNHOOK      10000000
#define GROUNDHEIGHT		180.0		//size of miro5v5 180 cm
#define GROUNDWIDTH			240.0		//size of miro5v5 250 cm(include Goalie)

class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
	
	MIL_ID   MilApplication;	//Application identifier
	MIL_ID   MilSystem     ;	//System identifier. 
	MIL_ID   MilDigitizer  ;	//digitizer identifier 
	MIL_ID   MilDisplay    ;	//Display identifier
	MIL_ID	 MilImageBuffer;	//Image Buffer 
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	CYujinSRHostView *pView;
	CGround * m_pGround;
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnClose();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnRobotBackward();
	afx_msg void OnRobotForward();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__D005DAB2_1320_4C32_81C5_145211118E7D__INCLUDED_)
